package com.service.impl;


import org.springframework.stereotype.Service;

@Service

public class UserServieImpl {


    public void delete() {
        System.out.println("delete in user service ---");
    }


    public void update() {
        System.out.println("update in user service ---");
    }


    public int add(int a, int b) {
        System.out.println("add *** ");
        //如果方法抛出异常，afterReturning通知是不会得到执行的。
        //throw new RuntimeException("pao ex");

        return a + b;
    }

}
